﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:delay="clr-namespace:Delay;assembly=PhonePerformance"
    xmlns:conv="clr-namespace:WeiboPlus.Converter;assembly=WeiboPlus.Common" xmlns:System="clr-namespace:System;assembly=mscorlib">
    <!--
Copyright (c) Microsoft Corporation.  All rights reserved.
-->
    <conv:IntToAccentColorConverter x:Key="IntToAccentColorConverter"/>
    <conv:TimeToStringConverter x:Key="TimeToStringConverter"/>
    <conv:ActiveToContentConverter x:Key="ActiveToContentConverter"/>
    <conv:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter"/>
    <conv:ReverseBoolToVisibilityConverter x:Key="ReverseBoolToVisibilityConverter"/>
    <conv:ImageResolutionConverter x:Key="ImageResolutionConverter"/>

    <!-- Common colors -->

    <!-- 100 percent White -->
    <Color x:Key="PhoneForegroundColor">#FFFFFFFF</Color>

    <!-- 100 percent Black -->
    <Color x:Key="PhoneBackgroundColor">#FF000000</Color>

    <!-- 100 percent Black -->
    <Color x:Key="PhoneContrastForegroundColor">#FF000000</Color>

    <!-- 100 percent White -->
    <Color x:Key="PhoneContrastBackgroundColor">#FFFFFFFF</Color>

    <!-- 40 percent White -->
    <Color x:Key="PhoneDisabledColor">#66FFFFFF</Color>



    <!-- TextBox colors -->

    <!-- 100 percent Black -->
    <Color x:Key="PhoneTextCaretColor">#FF000000</Color>

    <!-- 75 percent White -->
    <Color x:Key="PhoneTextBoxColor">#BFFFFFFF</Color>

    <!-- 100 percent Black -->
    <Color x:Key="PhoneTextBoxForegroundColor">#FF000000</Color>

    <!-- 100 percent White -->
    <Color x:Key="PhoneTextBoxEditBackgroundColor">#FFFFFFFF</Color>

    <!-- 100 percent White -->
    <Color x:Key="PhoneTextBoxEditBorderColor">#FFFFFFFF</Color>

    <!-- 47 percent percent Black -->
    <Color x:Key="PhoneTextBoxReadOnlyColor">#77000000</Color>

    <!-- 60 percent White -->
    <Color x:Key="PhoneSubtleColor">#99FFFFFF</Color>

    <!-- 100 percent White -->
    <Color x:Key="PhoneTextBoxSelectionForegroundColor">#FFFFFFFF</Color>


    <!-- RadioButton and CheckBox colors -->

    <!-- 75 percent White -->
    <Color x:Key="PhoneRadioCheckBoxColor">#BFFFFFFF</Color>

    <!-- 40 percent White -->
    <Color x:Key="PhoneRadioCheckBoxDisabledColor">#66FFFFFF</Color>

    <!-- 100 percent Black -->
    <Color x:Key="PhoneRadioCheckBoxCheckColor">#FF000000</Color>

    <!-- 40 percent Black -->
    <Color x:Key="PhoneRadioCheckBoxCheckDisabledColor">#66000000</Color>

    <!-- 100 percent White -->
    <Color x:Key="PhoneRadioCheckBoxPressedColor">#FFFFFFFF</Color>

    <!-- 100 percent White -->
    <Color x:Key="PhoneRadioCheckBoxPressedBorderColor">#FFFFFFFF</Color>



    <!-- Special colors -->

    <!-- 66 percent transparent -->
    <Color x:Key="PhoneSemitransparentColor">#AA000000</Color>

    <!-- System chrome color -->
    <Color x:Key="PhoneChromeColor">#FF1F1F1F</Color>



    <!-- Deprecated colors -->

    <!-- 20 percent White -->
    <Color x:Key="PhoneInactiveColor">#33FFFFFF</Color>

    <!-- Inverse inactive background color -->
    <Color x:Key="PhoneInverseInactiveColor">#FFCCCCCC</Color>

    <!-- Inverse background color -->
    <Color x:Key="PhoneInverseBackgroundColor">#FFFFFFFF</Color>

    <!-- 75 percent White -->
    <Color x:Key="PhoneBorderColor">#BFFFFFFF</Color>



    <!-- Visibility -->
    <Visibility x:Key="PhoneDarkThemeVisibility">Visible</Visibility>
    <Visibility x:Key="PhoneLightThemeVisibility">Collapsed</Visibility>



    <!-- Opacity -->
    <System:Double x:Key="PhoneDarkThemeOpacity">1</System:Double>
    <System:Double x:Key="PhoneLightThemeOpacity">0</System:Double>


    <SolidColorBrush x:Key="PhoneForegroundBrush" Color="{StaticResource PhoneForegroundColor}"/>

    <SolidColorBrush x:Key="PhoneBackgroundBrush" Color="{StaticResource PhoneBackgroundColor}"/>

    <SolidColorBrush x:Key="PhoneContrastForegroundBrush" Color="{StaticResource PhoneContrastForegroundColor}"/>

    <SolidColorBrush x:Key="PhoneContrastBackgroundBrush" Color="{StaticResource PhoneContrastBackgroundColor}"/>

    <SolidColorBrush x:Key="PhoneTextCaretBrush" Color="{StaticResource PhoneTextCaretColor}"/>

    <SolidColorBrush x:Key="PhoneTextBoxBrush" Color="{StaticResource PhoneTextBoxColor}"/>

    <SolidColorBrush x:Key="PhoneTextBoxForegroundBrush" Color="{StaticResource PhoneTextBoxForegroundColor}"/>

    <SolidColorBrush x:Key="PhoneTextBoxEditBackgroundBrush" Color="{StaticResource PhoneTextBoxEditBackgroundColor}"/>

    <SolidColorBrush x:Key="PhoneTextBoxEditBorderBrush" Color="{StaticResource PhoneTextBoxEditBorderColor}"/>

    <SolidColorBrush x:Key="PhoneTextBoxReadOnlyBrush" Color="{StaticResource PhoneTextBoxReadOnlyColor}"/>

    <SolidColorBrush x:Key="PhoneTextBoxSelectionForegroundBrush" Color="{StaticResource PhoneTextBoxSelectionForegroundColor}"/>

    <SolidColorBrush x:Key="PhoneSubtleBrush" Color="{StaticResource PhoneSubtleColor}"/>

    <SolidColorBrush x:Key="PhoneRadioCheckBoxBrush" Color="{StaticResource PhoneRadioCheckBoxColor}"/>

    <SolidColorBrush x:Key="PhoneRadioCheckBoxDisabledBrush" Color="{StaticResource PhoneRadioCheckBoxDisabledColor}"/>

    <SolidColorBrush x:Key="PhoneRadioCheckBoxCheckBrush" Color="{StaticResource PhoneRadioCheckBoxCheckColor}"/>

    <SolidColorBrush x:Key="PhoneRadioCheckBoxCheckDisabledBrush" Color="{StaticResource PhoneRadioCheckBoxCheckDisabledColor}"/>

    <SolidColorBrush x:Key="PhoneRadioCheckBoxPressedBrush" Color="{StaticResource PhoneRadioCheckBoxPressedColor}"/>

    <SolidColorBrush x:Key="PhoneRadioCheckBoxPressedBorderBrush" Color="{StaticResource PhoneRadioCheckBoxPressedBorderColor}"/>

    <SolidColorBrush x:Key="PhoneDisabledBrush" Color="{StaticResource PhoneDisabledColor}"/>

    <SolidColorBrush x:Key="TransparentBrush" Color="Transparent"/>

    <SolidColorBrush x:Key="PhoneSemitransparentBrush" Color="{StaticResource PhoneSemitransparentColor}"/>

    <SolidColorBrush x:Key="PhoneChromeBrush" Color="{StaticResource PhoneChromeColor}"/>

    <SolidColorBrush x:Key="PhoneAccentBrush" Color="{StaticResource PhoneAccentColor}"/>


    <!-- Deprecated brushes -->

    <SolidColorBrush x:Key="PhoneInactiveBrush" Color="{StaticResource PhoneInactiveColor}"/>

    <SolidColorBrush x:Key="PhoneInverseInactiveBrush" Color="{StaticResource PhoneInverseInactiveColor}"/>

    <SolidColorBrush x:Key="PhoneInverseBackgroundBrush" Color="{StaticResource PhoneInverseBackgroundColor}"/>

    <SolidColorBrush x:Key="PhoneBorderBrush" Color="{StaticResource PhoneBorderColor}"/>


    <!-- Touch Target area -->
    <Thickness x:Key="PhoneTouchTargetOverhang">12</Thickness>

    <!-- Touch Target area for CheckBox / RadioButton -->
    <Thickness x:Key="PhoneTouchTargetLargeOverhang">12,20</Thickness>

    <!-- Default margins for non-touch items -->
    <Thickness x:Key="PhoneHorizontalMargin">12,0</Thickness>
    <Thickness x:Key="PhoneVerticalMargin">0,12</Thickness>
    <Thickness x:Key="PhoneMargin">12</Thickness>

    <!-- Inner margins for text controls -->
    <Thickness x:Key="PhoneTextBoxInnerMargin">1,2</Thickness>
    <Thickness x:Key="PhonePasswordBoxInnerMargin">3,2</Thickness>

    <!-- Default border size-->
    <Thickness x:Key="PhoneBorderThickness">3</Thickness>

    <!-- Default stroke for RadioButton -->
    <System:Double x:Key="PhoneStrokeThickness">3</System:Double>

    <!-- Font names -->
    <FontFamily x:Key="PhoneFontFamilyNormal">Segoe WP</FontFamily>
    <FontFamily x:Key="PhoneFontFamilyLight">Segoe WP Light</FontFamily>
    <FontFamily x:Key="PhoneFontFamilySemiLight">Segoe WP SemiLight</FontFamily>
    <FontFamily x:Key="PhoneFontFamilySemiBold">Segoe WP Semibold</FontFamily>

    <!-- Font sizes -->

    <!--14pt-->
    <System:Double x:Key="PhoneFontSizeSmall">18.667</System:Double>
    <!--15pt-->
    <System:Double x:Key="PhoneFontSizeNormal">20</System:Double>
    <!--17pt-->
    <System:Double x:Key="PhoneFontSizeMedium">22.667</System:Double>
    <!--19pt-->
    <System:Double x:Key="PhoneFontSizeMediumLarge">25.333</System:Double>
    <!--24pt-->
    <System:Double x:Key="PhoneFontSizeLarge">32</System:Double>
    <!--32pt-->
    <System:Double x:Key="PhoneFontSizeExtraLarge">42.667</System:Double>
    <!--54pt-->
    <System:Double x:Key="PhoneFontSizeExtraExtraLarge">72</System:Double>
    <!--140pt-->
    <System:Double x:Key="PhoneFontSizeHuge">186.667</System:Double>

    <!-- TextBlock styles -->

    <Style x:Key="PhoneTextBlockBase" TargetType="TextBlock">
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/>
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeNormal}"/>
        <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
        <Setter Property="Margin" Value="{StaticResource PhoneHorizontalMargin}"/>
    </Style>

    <Style x:Key="PhoneTextNormalStyle" TargetType="TextBlock" BasedOn="{StaticResource PhoneTextBlockBase}" />

    <Style x:Key="PhoneTextSubtleStyle" TargetType="TextBlock" BasedOn="{StaticResource PhoneTextBlockBase}">
        <Setter Property="Foreground" Value="{StaticResource PhoneSubtleBrush}"/>
    </Style>

    <Style x:Key="PhoneTextTitle1Style" TargetType="TextBlock" BasedOn="{StaticResource PhoneTextBlockBase}">
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiLight}"/>
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeExtraExtraLarge}"/>
    </Style>

    <Style x:Key="PhoneTextTitle2Style" TargetType="TextBlock" BasedOn="{StaticResource PhoneTextBlockBase}">
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiLight}"/>
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeLarge}"/>
    </Style>

    <Style x:Key="PhoneTextTitle3Style" TargetType="TextBlock" BasedOn="{StaticResource PhoneTextBlockBase}">
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiLight}"/>
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMedium}"/>
    </Style>

    <Style x:Key="PhoneTextExtraLargeStyle" TargetType="TextBlock" BasedOn="{StaticResource PhoneTextBlockBase}">
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiLight}"/>
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeExtraLarge}"/>
    </Style>

    <Style x:Key="PhoneTextGroupHeaderStyle" TargetType="TextBlock" BasedOn="{StaticResource PhoneTextBlockBase}">
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiLight}"/>
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeLarge}"/>
        <Setter Property="Foreground" Value="{StaticResource PhoneSubtleBrush}"/>
    </Style>

    <Style x:Key="PhoneTextLargeStyle" TargetType="TextBlock" BasedOn="{StaticResource PhoneTextBlockBase}">
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiLight}"/>
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeLarge}"/>
    </Style>

    <Style x:Key="PhoneTextSmallStyle" TargetType="TextBlock" BasedOn="{StaticResource PhoneTextBlockBase}">
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeSmall}"/>
        <Setter Property="Foreground" Value="{StaticResource PhoneSubtleBrush}"/>
    </Style>

    <Style x:Key="PhoneTextContrastStyle" TargetType="TextBlock" BasedOn="{StaticResource PhoneTextBlockBase}">
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
        <Setter Property="Foreground" Value="{StaticResource PhoneContrastForegroundBrush}"/>
    </Style>

    <Style x:Key="PhoneTextAccentStyle" TargetType="TextBlock" BasedOn="{StaticResource PhoneTextBlockBase}">
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
        <Setter Property="Foreground" Value="{StaticResource PhoneAccentBrush}"/>
    </Style>

    <Style x:Key="PhoneTextHugeStyle" TargetType="TextBlock" BasedOn="{StaticResource PhoneTextBlockBase}">
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyLight}"/>
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeHuge}"/>
    </Style>

    <!--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-->



    <!--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-->
    <ItemsPanelTemplate x:Key="HotTopicItemsPanelTemplate">
        <StackPanel/>
    </ItemsPanelTemplate>
    <ItemsPanelTemplate x:Key="NestedTopicItemsPanelTemplate">
        <StackPanel Orientation="Horizontal"/>
    </ItemsPanelTemplate>
    <DataTemplate x:Key="NestedTopicListItemDataTemplate">
        <TextBlock Text="{Binding Query}" Margin="4,0"/>
    </DataTemplate>
    <!-- Resource dictionary entries should be defined here. -->
    <DataTemplate x:Key="HotTopicListDataTemplate">
        <Grid d:DesignWidth="404" d:DesignHeight="57">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="20"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Rectangle Fill="Green"/>
            <!-- <TextBlock Grid.Column="1" Text="{Binding Item.Trends}" Margin="4,0"/>-->

            <ItemsControl HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" Grid.Column="1" BorderThickness="0" Margin="4" ItemsSource="{Binding Item.Trends}" ItemsPanel="{StaticResource NestedTopicItemsPanelTemplate}" ItemTemplate="{StaticResource NestedTopicListItemDataTemplate}"/>

        </Grid>
    </DataTemplate>

    <ControlTemplate x:Key="PhoneDisabledTextBoxTemplate" TargetType="TextBox">
        <ContentControl x:Name="ContentElement" BorderThickness="0" HorizontalContentAlignment="Stretch" Margin="{StaticResource PhoneTextBoxInnerMargin}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="Stretch"/>
    </ControlTemplate>
    <Style x:Key="TextBoxStyle3" TargetType="TextBox">
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/>
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
        <Setter Property="Margin" Value="10,0,0,0"/>
        <Setter Property="TextWrapping" Value="Wrap"/>
        <Setter Property="MaxHeight" Value="80"/>
        <Setter Property="Background" Value="{StaticResource PhoneTextBoxBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource PhoneTextBoxForegroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PhoneTextBoxBrush}"/>
        <Setter Property="SelectionBackground" Value="{StaticResource PhoneAccentBrush}"/>
        <Setter Property="SelectionForeground" Value="{StaticResource PhoneTextBoxSelectionForegroundBrush}"/>
        <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
        <Setter Property="Padding" Value="8"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TextBox">
                    <Grid Background="Transparent" x:Name="rootGrid">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="rootGrid">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="-16,-160,-30,-10"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Height" Storyboard.TargetName="rootGrid">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="260"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="EnabledBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <SolidColorBrush Color="White" />
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused">
                                    <Storyboard AutoReverse="True">
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>

                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="EnabledBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="{StaticResource PhoneTouchTargetOverhang}">
                            <ContentControl x:Name="ContentElement" BorderThickness="0" HorizontalContentAlignment="Stretch" Margin="{StaticResource PhoneTextBoxInnerMargin}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="Stretch"/>
                        </Border>
                        <Border x:Name="DisabledOrReadonlyBorder" BorderBrush="{StaticResource PhoneDisabledBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="Transparent" Margin="{StaticResource PhoneTouchTargetOverhang}" Visibility="Collapsed">
                            <TextBox x:Name="DisabledOrReadonlyContent" Background="Transparent" Foreground="{StaticResource PhoneDisabledBrush}" FontWeight="{TemplateBinding FontWeight}" FontStyle="{TemplateBinding FontStyle}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" IsReadOnly="True" SelectionForeground="{TemplateBinding SelectionForeground}" SelectionBackground="{TemplateBinding SelectionBackground}" TextAlignment="{TemplateBinding TextAlignment}" TextWrapping="{TemplateBinding TextWrapping}" Text="{TemplateBinding Text}" Template="{StaticResource PhoneDisabledTextBoxTemplate}"/>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TextBoxStyle2" TargetType="TextBox">
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/>
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
        <Setter Property="Margin" Value="10,0,0,0"/>

        <Setter Property="Background" Value="{StaticResource PhoneTextBoxBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource PhoneTextBoxForegroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PhoneTextBoxBrush}"/>
        <Setter Property="SelectionBackground" Value="{StaticResource PhoneAccentBrush}"/>
        <Setter Property="SelectionForeground" Value="{StaticResource PhoneTextBoxSelectionForegroundBrush}"/>
        <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
        <Setter Property="Padding" Value="2"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TextBox">
                    <Grid Background="Transparent" x:Name="rootGrid">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="rootGrid">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="-22,-120,-20,0"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Height" Storyboard.TargetName="rootGrid">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="220"/>
                                        </ObjectAnimationUsingKeyFrames>

                                        <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="EnabledBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneAccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>-->
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="EnabledBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <SolidColorBrush Color="White" />
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused">
                                    <Storyboard AutoReverse="True">
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>

                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="EnabledBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="{StaticResource PhoneTouchTargetOverhang}">
                            <ContentControl x:Name="ContentElement" BorderThickness="0" HorizontalContentAlignment="Stretch" Margin="{StaticResource PhoneTextBoxInnerMargin}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="Stretch"/>
                        </Border>
                        <Border x:Name="DisabledOrReadonlyBorder" BorderBrush="{StaticResource PhoneDisabledBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="Transparent" Margin="{StaticResource PhoneTouchTargetOverhang}" Visibility="Collapsed">
                            <TextBox x:Name="DisabledOrReadonlyContent" Background="Transparent" Foreground="{StaticResource PhoneDisabledBrush}" FontWeight="{TemplateBinding FontWeight}" FontStyle="{TemplateBinding FontStyle}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" IsReadOnly="True" SelectionForeground="{TemplateBinding SelectionForeground}" SelectionBackground="{TemplateBinding SelectionBackground}" TextAlignment="{TemplateBinding TextAlignment}" TextWrapping="{TemplateBinding TextWrapping}" Text="{TemplateBinding Text}" Template="{StaticResource PhoneDisabledTextBoxTemplate}"/>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="TextBoxStyle1" TargetType="TextBox">
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/>
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
        <Setter Property="Margin" Value="0,-130,0,0"/>
        <Setter Property="Background" Value="{StaticResource PhoneTextBoxBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource PhoneTextBoxForegroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PhoneTextBoxBrush}"/>
        <Setter Property="SelectionBackground" Value="{StaticResource PhoneAccentBrush}"/>
        <Setter Property="SelectionForeground" Value="{StaticResource PhoneTextBoxSelectionForegroundBrush}"/>
        <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
        <Setter Property="Padding" Value="2"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TextBox">
                    <Grid Background="Transparent" x:Name="rootGrid">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <!--<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="rootGrid">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneTextBoxBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>-->
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="EnabledBorder">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneAccentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused">
                                    <Storyboard AutoReverse="True">
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>

                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="EnabledBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="{StaticResource PhoneTouchTargetOverhang}">
                            <ContentControl x:Name="ContentElement" BorderThickness="0" HorizontalContentAlignment="Stretch" Margin="{StaticResource PhoneTextBoxInnerMargin}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="Stretch"/>
                        </Border>
                        <Border x:Name="DisabledOrReadonlyBorder" BorderBrush="{StaticResource PhoneDisabledBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="Transparent" Margin="{StaticResource PhoneTouchTargetOverhang}" Visibility="Collapsed">
                            <TextBox x:Name="DisabledOrReadonlyContent" Background="Transparent" Foreground="{StaticResource PhoneDisabledBrush}" FontWeight="{TemplateBinding FontWeight}" FontStyle="{TemplateBinding FontStyle}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" IsReadOnly="True" SelectionForeground="{TemplateBinding SelectionForeground}" SelectionBackground="{TemplateBinding SelectionBackground}" TextAlignment="{TemplateBinding TextAlignment}" TextWrapping="{TemplateBinding TextWrapping}" Text="{TemplateBinding Text}" Template="{StaticResource PhoneDisabledTextBoxTemplate}"/>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="ProviderPickerItemTemplate">
        <StackPanel Orientation="Horizontal">
            <Image Height="30" Width="30" Margin="2,2,12,2" Source="{Binding IconImage}"/>
            <TextBlock Text="{Binding ProviderName}" VerticalAlignment="Center"/>
        </StackPanel>
    </DataTemplate>
    <DataTemplate x:Key="ImageResolutionPickerItemTemplate">
        <TextBlock Text="{Binding ., Converter={StaticResource ImageResolutionConverter}}" VerticalAlignment="Center"/>
    </DataTemplate>
    <Style x:Key="ListPickerStyle"  TargetType="toolkit:ListPicker">
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Background" Value="LightYellow"/>
    </Style>
    <DataTemplate x:Key="UserListDataTemplate">
        <Grid Margin="-6,0"
            >
            <Grid.RowDefinitions>
                <RowDefinition
                    Height="Auto" />
                <RowDefinition
                    Height="Auto" />
            </Grid.RowDefinitions>
            <Border Height="1" Grid.Row="0" Margin="-20,-10,-20,0" Background="Gray" HorizontalAlignment="Stretch" VerticalAlignment="Top" Opacity=".5"></Border>
            <StackPanel
                Orientation="Horizontal"
                VerticalAlignment="Stretch"
                HorizontalAlignment="Stretch"
                Margin="2">
                <Image
                    delay:LowProfileImageLoader.UriSource="{Binding ProfileImageUrl}"
                    Source="{Binding ProfileImageUrl}"
                    VerticalAlignment="Top"
                    Margin="8,14"
                    Height="60"
                    Width="60">
                    <Image.Clip>
                        <RectangleGeometry
                            RadiusX="2"
                            RadiusY="2"
                            Rect="0,0,60,60" />
                    </Image.Clip>
                </Image>
                <TextBlock
                    toolkit:TiltEffect.IsTiltEnabled="True"
                    FontSize="26"
                    Margin="8,8,0,12"
                    VerticalAlignment="Top"
                    Text="{Binding Name}"
                    Foreground="{StaticResource PhoneAccentBrush}" />
                <Image
                    Margin="0,16,0,12"
                    Height="24"
                    Visibility="{Binding Verified, Converter={StaticResource BoolToVisibilityConverter}}"
                    Width="24"
                    Source="/Icons/verify_icon.png"
                    VerticalAlignment="Top" />
            </StackPanel>
            <StackPanel
                Orientation="Horizontal"
                Margin="8,-12,0,0"
                Grid.Row="1">
                <TextBlock
                    Text="{Binding Location, StringFormat='位置: {0}'}"
                    TextWrapping="Wrap"
                    FontSize="16"
                    Foreground="Gray"
                    Margin="0,0,0,0" />
                <!--<TextBlock
                    Text="{Binding StatusesCount, StringFormat='微博: {0:N0}'}"
                    TextWrapping="Wrap"
                    FontSize="16"
                    Foreground="Gray"
                    Margin="8,0,0,0" />-->
                <TextBlock
                    Text="{Binding FriendsCount, StringFormat='朋友: {0:N0}'}"
                    TextWrapping="Wrap" 
                    FontSize="16"
                    Foreground="Gray"
                    Margin="8,0,0,0" />
                <TextBlock
                    Text="{Binding FollowersCount, StringFormat='粉丝: {0:N0}'}"
                    TextWrapping="Wrap"
                    FontSize="16"
                    Foreground="Gray"
                    Margin="8,0,0,0" />
            </StackPanel>
            <TextBlock
                Text="{Binding LastStatusText}"
                TextWrapping="NoWrap"
                
                Foreground="LightGray"
                Margin="84,45,0,20" />
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="CommentListDataTemplateLite">
        <Grid d:DesignHeight="238" Margin="2" d:DesignWidth="639">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Border Height="1" Grid.Row="0" Margin="-10,0,-10,-10" Background="Gray" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Opacity=".5"></Border>
            <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
                <!--<Border VerticalAlignment="Top" Margin="8" Background="{Binding UserFaceImage}" Height="60" Width="60" CornerRadius="6" BorderThickness="0,0,1,1" >
                    
                </Border>-->
                <Image delay:LowProfileImageLoader.UriSource ="{Binding FaceImageUri}"  VerticalAlignment="Top" Margin="8"  Height="48" Width="48" >
                    <Image.Clip>
                        <RectangleGeometry RadiusX="2" RadiusY="2" Rect="0,0,48,48"/>
                    </Image.Clip>
                </Image>
                <TextBlock  Margin="0,2,0,0" VerticalAlignment="top" Text="{Binding Item.User.Name}" Foreground="{StaticResource PhoneAccentBrush}"/>
                <Image Margin="0,8,0,0" Height="18" VerticalAlignment="top" Visibility="{Binding Item.User.Verified, Converter={StaticResource BoolToVisibilityConverter}}" Width="24" Source="/Icons/verify_icon.png"/>
            </StackPanel>
            <TextBlock HorizontalAlignment="Right" Margin="10,8" Foreground="Gray" Text="{Binding StatusInfoText}" FontSize="16"/>
            <TextBlock Margin="64,30,2,2"  Text="{Binding Item.Text}" TextWrapping="Wrap"/>
        </Grid>
    </DataTemplate>
    <Style x:Key="ListBoxItemContainerStyle" TargetType="ListBoxItem">
        <Setter Property="Foreground" Value="LightGray"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Margin" Value="0,8,8,8"/>
        <Setter Property="Padding" Value="0"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListBoxItem">
                    <Border x:Name="LayoutRoot" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" d:DesignHeight="95" d:DesignWidth="298" >

                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver"/>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="LayoutRoot">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TransparentBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0" To=".5" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ContentContainer"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="SelectionStates">
                                <VisualState x:Name="Unselected"/>
                                <VisualState x:Name="Selected"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="PhoneButtonBase" TargetType="ButtonBase">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
        <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
        <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
        <Setter Property="Padding" Value="10,3,10,5"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ButtonBase">
                    <Grid Background="Transparent">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver"/>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Border x:Name="ButtonBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="0" Margin="{StaticResource PhoneTouchTargetOverhang}">
                            <ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="PhoneRadioButtonCheckBoxBase" BasedOn="{StaticResource PhoneButtonBase}" TargetType="ToggleButton">
        <Setter Property="Background" Value="{StaticResource PhoneRadioCheckBoxBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource PhoneRadioCheckBoxBrush}"/>
        <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMedium}"/>
        <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="0"/>
    </Style>
    <Style x:Key="CheckBoxStyle1" BasedOn="{StaticResource PhoneRadioButtonCheckBoxBase}" TargetType="CheckBox">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="CheckBox">
                    <Grid Background="Transparent">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver"/>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="CheckMark">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneRadioCheckBoxCheckBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="IndeterminateMark">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneRadioCheckBoxCheckBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="CheckMark">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneRadioCheckBoxCheckDisabledBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="IndeterminateMark">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneRadioCheckBoxCheckDisabledBrush}"/>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="CheckStates">
                                <VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="CheckMark">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unchecked"/>
                                <VisualState x:Name="Indeterminate">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="IndeterminateMark">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid Margin="{StaticResource PhoneTouchTargetLargeOverhang}">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="32"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <Border x:Name="CheckBackground" BorderThickness="{StaticResource PhoneBorderThickness}" HorizontalAlignment="Left" Height="32" IsHitTestVisible="False" VerticalAlignment="Center" Width="32" Background="#FFEFE4E4" BorderBrush="#FFEFE4E4"/>
                            <Rectangle x:Name="IndeterminateMark" Fill="{StaticResource PhoneRadioCheckBoxCheckBrush}" HorizontalAlignment="Center" Height="16" IsHitTestVisible="False" Grid.Row="0" Visibility="Collapsed" VerticalAlignment="Center" Width="16"/>
                            <Path x:Name="CheckMark" Data="M0,119 L31,92 L119,185 L267,0 L300,24 L122,250 z" Fill="{StaticResource PhoneRadioCheckBoxCheckBrush}" HorizontalAlignment="Center" Height="18" IsHitTestVisible="False" Stretch="Fill" StrokeThickness="2" StrokeLineJoin="Round" Visibility="Collapsed" VerticalAlignment="Center" Width="24"/>
                            <ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="1" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="12,0,0,0" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" Foreground="LightGray"/>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="DestinationSettingListItemTemplate">
        <CheckBox Style="{StaticResource CheckBoxStyle1}" IsChecked="{Binding IsDestination,Mode=TwoWay}" Padding="-2">
            <Image delay:LowProfileImageLoader.UriSource ="{Binding UserLite.ProfileImageUrl}"  VerticalAlignment="Top" Margin="2"  Height="48" Width="48" >
                <Image.Clip>
                    <RectangleGeometry RadiusX="2" RadiusY="2" Rect="0,0,48,48"/>
                </Image.Clip>
            </Image>
        </CheckBox>
    </DataTemplate>
    <DataTemplate x:Key="StatusListDataTemplate">
        <Grid d:DesignHeight="238" d:DesignWidth="639" Margin="10,0,2,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Border Height="1" Grid.Row="0" Visibility="Collapsed" Margin="-10,-10,-10,0" Background="Gray" HorizontalAlignment="Stretch" VerticalAlignment="Top" Opacity=".5"></Border>
            <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
                <!--<Border VerticalAlignment="Top" Margin="8" Background="{Binding UserFaceImage}" Height="60" Width="60" CornerRadius="6" BorderThickness="0,0,1,1" >
                    
                </Border>-->
                <Grid Width="48" VerticalAlignment="Top" Margin="4,8,8,8" Height="48">
                    <Image delay:LowProfileImageLoader.UriSource ="{Binding FaceImageUri}">
                        <Image.Clip>
                            <RectangleGeometry RadiusX="2" RadiusY="2" Rect="0,0,48,48"/>
                        </Image.Clip>
                    </Image>
                    <Path VerticalAlignment="Top"  Data="M0,0 L0,20 L20,0 Z" Fill="{Binding Item.Account.AccountID,Converter={StaticResource IntToAccentColorConverter}}" />
                </Grid>
                <TextBlock  Margin="0,2,0,0" VerticalAlignment="top" Text="{Binding Item.User.Name}" Foreground="{StaticResource PhoneAccentBrush}"/>
                <Image Margin="0,8,0,0" Height="18" VerticalAlignment="top" Visibility="{Binding Item.User.Verified, Converter={StaticResource BoolToVisibilityConverter}}" Width="24" Source="/Icons/verify_icon.png"/>
                <TextBlock  Margin="2,2,0,0" VerticalAlignment="top" Text="{Binding Item.Prefix}" Foreground="Gray"/>
            </StackPanel>
            <TextBlock HorizontalAlignment="Left"  Margin="62,34,0,0"  VerticalAlignment="Top" Height="22" Foreground="Gray" Text="{Binding StatusInfoText}" FontSize="16"/>
            <TextBlock HorizontalAlignment="Right"  Margin="0,34,0,0" VerticalAlignment="Top" Height="22" Foreground="Gray" Text="{Binding RepostCommentInfoText}" FontSize="16"/>
            <!--<StackPanel Orientation="Horizontal" Margin="6" VerticalAlignment="Top" HorizontalAlignment="Right">
                <TextBlock Margin="4,2" HorizontalAlignment="Right"   VerticalAlignment="Top" Text="{Binding Item.CreatedTime,Converter={StaticResource TimeToStringConverter},ConverterParameter=FROM_NOW}" Foreground="{StaticResource PhoneAccentBrush}" FontSize="16"/>
                <TextBlock Margin="2" HorizontalAlignment="Right"  VerticalAlignment="Top" Text="来自" FontSize="16"/>
                <TextBlock Margin="0,2" HorizontalAlignment="Right"  VerticalAlignment="Top" Text="{Binding Item.Source}" Foreground="{StaticResource PhoneAccentBrush}" TextDecorations="Underline" FontSize="16"/>
            </StackPanel>-->
            <!--<WeiboText Margin="64,32,2,2" Text="{Binding Item.Text}" TextWrapping="Wrap"/>-->
            <TextBlock Margin="4,64,2,2" Text="{Binding Item.Text}" TextWrapping="Wrap"/>
            <Image HorizontalAlignment="Left"  MaxHeight="{Binding MaxHeight}" MaxWidth="{Binding MaxWidth}" delay:LowProfileImageLoader.UriSource ="{Binding Image}" Margin="4,2,12,2" Grid.Row="1"/>
            <!--<Border Visibility="{Binding HasRetweet, Converter={StaticResource BoolToVisibilityConverter}}" Grid.Row="2" Margin="68,2,2,24" Padding="4" CornerRadius="4" Background="{StaticResource BorderContainerBrush1}" BorderThickness="0,0,1,1" BorderBrush="#FF413B3B"></Border>-->
            <Grid Visibility="{Binding HasRetweet, Converter={StaticResource BoolToVisibilityConverter}}" Grid.Row="2" Margin="10,4,6,8">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="16"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <StackPanel Orientation="Horizontal" Grid.Column="1">
                    <TextBlock Text="{Binding Item.RetweetedStatus.User.Name}" Foreground="{StaticResource PhoneAccentBrush}"/>
                    <Image VerticalAlignment="Top" Margin="2,8,0,0" Visibility="{Binding Item.RetweetedStatus.User.Verified, Converter={StaticResource BoolToVisibilityConverter}}" Width="18" Source="/Icons/verify_icon.png"/>
                </StackPanel>
                <!--<WeiboText  Grid.Column="1" Grid.Row="1" Text="{Binding Item.RetweetedStatus.Text}" TextWrapping="Wrap"/>-->
                <TextBlock  Grid.Column="1" Grid.Row="1" Text="{Binding Item.RetweetedStatus.Text}" TextWrapping="Wrap"/>
                <!--<Path  Grid.Column="1" VerticalAlignment="Top" Data="M5,0 L0,10 L10,10 Z" Fill="{StaticResource BorderContainerBrush1}" Margin="6,-18,-8,4"/>-->
                <Image  Grid.Column="1" MaxHeight="{Binding MaxHeight}" MaxWidth="{Binding MaxWidth}"  Grid.Row="2" Margin="4" HorizontalAlignment="Left" delay:LowProfileImageLoader.UriSource ="{Binding RetweetImage}"/>
                <TextBlock  Grid.Column="1" HorizontalAlignment="Left"  Margin="2,0,0,0" Grid.Row="3" VerticalAlignment="Top" Height="22" Foreground="Gray" Text="{Binding RetweetedStatusInfoText}" FontSize="16"/>
                <TextBlock  Grid.Column="1" HorizontalAlignment="Right" Grid.Row="3" VerticalAlignment="Top" Height="22" Foreground="Gray" Text="{Binding RetweetedRepostCommentInfoText}" FontSize="16"/>
                <Rectangle Grid.RowSpan="4" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="2" Fill="Gray"></Rectangle>
            </Grid>
            <Border Grid.Row="3" Grid.Column="2" BorderThickness="1,0,0,1" Margin="-16,2,-10,-4" Background="Black" Opacity=".2" >
                <Border.BorderBrush>
                    <SolidColorBrush Color="LightGray" />
                </Border.BorderBrush>
            </Border>
            <ItemsControl Grid.Row="3" ItemsSource="{Binding Item.Comments}">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Orientation="Vertical"/>
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <Grid Margin="12,8">
                            <Grid.RowDefinitions>
                                <RowDefinition/>
                                <RowDefinition/>
                            </Grid.RowDefinitions>
                            <TextBlock Text="{Binding User.Name,StringFormat='{}{0}:'}" Foreground="{StaticResource PhoneAccentBrush}"/>
                            <TextBlock Grid.Row="1" Text="{Binding Text}" TextTrimming="WordEllipsis"/>
                        </Grid>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="StatusListDataTemplate_">
        <Grid d:DesignHeight="238" d:DesignWidth="639" Margin="10,0,2,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Border Margin="-2" Grid.RowSpan="3" Background="DeepSkyBlue" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ></Border>
            <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
                <!--<Border VerticalAlignment="Top" Margin="8" Background="{Binding UserFaceImage}" Height="60" Width="60" CornerRadius="6" BorderThickness="0,0,1,1" >
                    
                </Border>-->
                <Grid Width="48" VerticalAlignment="Top" Margin="4,8,8,8" Height="48">
                    <Image delay:LowProfileImageLoader.UriSource ="{Binding FaceImageUri}">
                        <Image.Clip>
                            <RectangleGeometry RadiusX="2" RadiusY="2" Rect="0,0,48,48"/>
                        </Image.Clip>
                    </Image>
                    <Path VerticalAlignment="Top"  Data="M0,0 L0,20 L20,0 Z" Fill="{Binding Item.Account.AccountID,Converter={StaticResource IntToAccentColorConverter}}" />
                </Grid>



                <TextBlock  Margin="0,2,0,0" VerticalAlignment="top" Text="{Binding Item.User.Name}" Foreground="{StaticResource PhoneAccentBrush}"/>
                <Image Margin="0,8,0,0" Height="18" VerticalAlignment="top" Visibility="{Binding Item.User.Verified, Converter={StaticResource BoolToVisibilityConverter}}" Width="24" Source="/Icons/verify_icon.png"/>
                <TextBlock  Margin="2,2,0,0" VerticalAlignment="top" Text="{Binding Item.Prefix}" Foreground="Gray"/>
            </StackPanel>
            <!--<StackPanel Orientation="Horizontal" Margin="6" VerticalAlignment="Top" HorizontalAlignment="Right">
                <TextBlock Margin="4,2" HorizontalAlignment="Right"   VerticalAlignment="Top" Text="{Binding Item.CreatedTime,Converter={StaticResource TimeToStringConverter},ConverterParameter=FROM_NOW}" Foreground="{StaticResource PhoneAccentBrush}" FontSize="16"/>
                <TextBlock Margin="2" HorizontalAlignment="Right"  VerticalAlignment="Top" Text="来自" FontSize="16"/>
                <TextBlock Margin="0,2" HorizontalAlignment="Right"  VerticalAlignment="Top" Text="{Binding Item.Source}" Foreground="{StaticResource PhoneAccentBrush}" TextDecorations="Underline" FontSize="16"/>
            </StackPanel>-->
            <!--<WeiboText Margin="64,32,2,2" Text="{Binding Item.Text}" TextWrapping="Wrap"/>-->
            <TextBlock Margin="64,32,8,2" Text="{Binding Item.Text}" TextWrapping="Wrap"/>
            <Image HorizontalAlignment="Left"  MaxHeight="{Binding MaxHeight}" MaxWidth="{Binding MaxWidth}" delay:LowProfileImageLoader.UriSource ="{Binding Image}" Margin="70,2,22,2" Grid.Row="1"/>
            <!--<Border Visibility="{Binding HasRetweet, Converter={StaticResource BoolToVisibilityConverter}}" Grid.Row="2" Margin="68,2,2,24" Padding="4" CornerRadius="4" Background="{StaticResource BorderContainerBrush1}" BorderThickness="0,0,1,1" BorderBrush="#FF413B3B"></Border>-->
            <Grid Visibility="{Binding HasRetweet, Converter={StaticResource BoolToVisibilityConverter}}" Grid.Row="2" Margin="70,4,6,28">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="16"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <StackPanel Orientation="Horizontal" Grid.Column="1">
                    <TextBlock Text="{Binding Item.RetweetedStatus.User.Name}" Foreground="{StaticResource PhoneAccentBrush}"/>
                    <Image VerticalAlignment="Top" Margin="2,8,0,0" Visibility="{Binding Item.RetweetedStatus.User.Verified, Converter={StaticResource BoolToVisibilityConverter}}" Width="18" Source="/Icons/verify_icon.png"/>
                </StackPanel>
                <!--<WeiboText  Grid.Column="1" Grid.Row="1" Text="{Binding Item.RetweetedStatus.Text}" TextWrapping="Wrap"/>-->
                <TextBlock  Grid.Column="1" Grid.Row="1" Text="{Binding Item.RetweetedStatus.Text}" TextWrapping="Wrap"/>
                <!--<Path  Grid.Column="1" VerticalAlignment="Top" Data="M5,0 L0,10 L10,10 Z" Fill="{StaticResource BorderContainerBrush1}" Margin="6,-18,-8,4"/>-->
                <Image  Grid.Column="1" MaxHeight="{Binding MaxHeight}" MaxWidth="{Binding MaxWidth}"  Grid.Row="2" Margin="4,4,4,24" HorizontalAlignment="Left" delay:LowProfileImageLoader.UriSource ="{Binding RetweetImage}"/>
                <TextBlock  Grid.Column="1" HorizontalAlignment="Left"  Margin="2,0,0,0" Grid.Row="2" VerticalAlignment="Bottom" Height="22" Foreground="Gray" Text="{Binding RetweetedStatusInfoText}" FontSize="16"/>
                <TextBlock  Grid.Column="1" HorizontalAlignment="Right" Grid.Row="2" VerticalAlignment="Bottom" Height="22" Foreground="Gray" Text="{Binding RetweetedRepostCommentInfoText}" FontSize="16"/>
                <Rectangle Grid.RowSpan="4" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="3" Fill="Gray"></Rectangle>
            </Grid>
            <TextBlock HorizontalAlignment="Left"  Margin="64,0,0,0" Grid.Row="2" VerticalAlignment="Bottom" Height="22" Foreground="Gray" Text="{Binding StatusInfoText}" FontSize="16"/>
            <TextBlock HorizontalAlignment="Right" Grid.Row="2" VerticalAlignment="Bottom" Height="22" Foreground="Gray" Text="{Binding RepostCommentInfoText}" FontSize="16"/>


        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="StatusListDataTemplateOfASingleUser">
        <Grid  d:DesignHeight="238"  d:DesignWidth="639">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Border Height="1" Grid.Row="0" Margin="-10,-12,-10,0" Background="Gray" HorizontalAlignment="Stretch" VerticalAlignment="Top" Opacity=".5"></Border>
            <!--<WeiboText Margin="-2" Text="{Binding Item.Text}" TextWrapping="Wrap"/>-->
            <TextBlock Margin="2,2,2,2" Text="{Binding Item.Text}" TextWrapping="Wrap"/>
            <Image HorizontalAlignment="Left"  MaxHeight="200" MaxWidth="200" delay:LowProfileImageLoader.UriSource ="{Binding Image}" Margin="4,2,22,2" Grid.Row="1"/>
            <Grid Visibility="{Binding HasRetweet, Converter={StaticResource BoolToVisibilityConverter}}" Grid.Row="2" Margin="6,4,6,22">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="16"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <StackPanel Orientation="Horizontal" Grid.Column="1">
                    <TextBlock Text="{Binding Item.RetweetedStatus.User.Name}" Foreground="{StaticResource PhoneAccentBrush}"/>
                    <Image VerticalAlignment="Top" Margin="2,8,0,0" Visibility="{Binding Item.RetweetedStatus.User.Verified, Converter={StaticResource BoolToVisibilityConverter}}" Width="18" Source="/Icons/verify_icon.png"/>
                </StackPanel>
                <!--<WeiboText  Grid.Column="1" Grid.Row="1" Text="{Binding Item.RetweetedStatus.Text}" TextWrapping="Wrap"/>-->
                <TextBlock  Grid.Column="1" Grid.Row="1" Text="{Binding Item.RetweetedStatus.Text}" TextWrapping="Wrap"/>
                <!--<Path  Grid.Column="1" VerticalAlignment="Top" Data="M5,0 L0,10 L10,10 Z" Fill="{StaticResource BorderContainerBrush1}" Margin="6,-18,-8,4"/>-->
                <Image  Grid.Column="1" MaxHeight="200" MaxWidth="200" Grid.Row="2" Margin="4,4,4,24" HorizontalAlignment="Left" delay:LowProfileImageLoader.UriSource ="{Binding RetweetImage}"/>
                <TextBlock  Grid.Column="1" HorizontalAlignment="Left"  Margin="2,0,0,0" Grid.Row="2" VerticalAlignment="Bottom" Height="22" Foreground="Gray" Text="{Binding RetweetedStatusInfoText}" FontSize="16"/>
                <TextBlock  Grid.Column="1" HorizontalAlignment="Right" Grid.Row="2" VerticalAlignment="Bottom" Height="22" Foreground="Gray" Text="{Binding RetweetedRepostCommentInfoText}" FontSize="16"/>
                <Rectangle Grid.RowSpan="4" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="3" Fill="Gray"></Rectangle>
            </Grid>
            <TextBlock HorizontalAlignment="Left"  Margin="6,0,0,0" Grid.Row="2" VerticalAlignment="Bottom" Height="22" Foreground="Gray" Text="{Binding StatusInfoText}" FontSize="16"/>
            <TextBlock HorizontalAlignment="Right" Grid.Row="2" VerticalAlignment="Bottom" Height="22" Foreground="Gray" Text="{Binding RepostCommentInfoText}" FontSize="16"/>
        </Grid>
    </DataTemplate>
    <SolidColorBrush x:Key="ListItemBorderBrush" Color="Gray" Opacity=".5"/>

</ResourceDictionary>